package cn.yx.common.core.pojo;

import cn.yx.common.core.pojo.base.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * <p>返回到前端页面的分页对象</p>
 *
 * @param <Vo>
 * @author Wgssmart
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "PageVo", description = "分页结果")
public class PageVo<Vo extends BaseVo> extends BaseVo {

    @ApiModelProperty(value = "总行数", example = "100")
    private Long total;

    @ApiModelProperty(value = "结果集")
    private List<Vo> results;

}
